package org.jash.shop2111

import org.jash.shop2111.net.APIService
import org.jash.shop2111.net.service
import org.junit.Test

import org.junit.Assert.*

/**
 * Example local unit test, which will execute on the development machine (host).
 *
 * See [testing documentation](http://d.android.com/tools/testing).
 */
class ExampleUnitTest {
    @Test
    fun addition_isCorrect() {
        assertEquals(4, 2 + 2)
    }
    @Test
    fun testGoods() {
//        val service:APIService = service()
//        val subscribe = service.getGoodsList(0, 1, 5).subscribe({
//            val map = it.data[0].goods_attribute
//            for ((k, v) in map) {
//                println("$k : $v")
//            }
//        }, {
//            it.printStackTrace()
//        })
//        Thread.sleep(2000)

    }
}